package com.vitech.javacertification.ArraysfromHell;

public class ArraysplayGround {

	public static void main(String[] args) {

		threeDimArrays();

	}

	static void twoDimArrays() {

		int[][] twoDim = { { 0, 1 }, { 2, 3 } };

	}

	static void threeDimArrays() {

		int[][][] threeDim = { { { 0 }, { 2, 3 }, { 5, 6, 7 } },
				{ { 8, 9, 10, 11 }, { 12, 13, 14, 15 } } };

		System.out.println("threedim length = " + threeDim.length);

		System.out.println("threeDim[0]   .length = " + threeDim[0].length);
		System.out.println("threeDim[1]   .length = " + threeDim[1].length
				+ "\n");

		System.out.println("threeDim[0][0].length = " + threeDim[0][0].length);
		System.out.println("threeDim[0][1].length = " + threeDim[0][1].length);

		System.out.println("threeDim[1][0].length = " + threeDim[1][0].length);
		System.out.println("threeDim[1][1].length = " + threeDim[1][1].length);

		System.out.println("threeDim[1].length = " + threeDim[1].length);

		String[][][] arr = { { {}, null },
				{ { "1", "2" }, { "1", null, "3" } }, {{"1"}}, { { "O", null } } };
		
		System.out.println( arr[3][0][1]);

		return;

	}

}
